package st.business.tepth.business.maintainplan;

import java.util.List;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.MaintainPlanBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-06-04 16:04
 */

public interface MaintainPlanContract {
    interface View extends BaseView {
        void showMaintainPlanList(List<MaintainPlanBean> list);

        void showError(String msg);
    }

    interface Model extends BaseModel {
        Disposable getMaintainPlanList(String token, String date,
                                       OnDataConvertListener<List<MaintainPlanBean>> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getMaintainPlanList(String token, String date);
    }
}
